package com.shangxian.giveithome.utils;


public class PageUtils {

    /**
     * 返回总页数
     * @return
     */
    public static int returnPages(int total, int pageSize) {
        //总页数
        int totalPages = total / pageSize;
        if (total % pageSize != 0) {
            totalPages += 1;
        }
        return totalPages;
    }

}
